{% extends "forum/user/default.html" %}
{% load i18n %}

{% block content %}

{% if page.object_list.count %}
<table id="user_message_box" class="clear">
    <thead>
        <th class="col1">{% trans "Date" %}</th>
        <th class="col2">{% trans "Author" %}</th>
        <th class="col3">{% trans "Message title" %}</th>        
    </thead>
    
    <tbody>
    {% for msg in page.object_list %}

    <tr {% if forloop.counter|divisibleby:"2" %}class="mark"{% endif %}>
        <td class="col1">{{msg.created_time|date}}</td>        
        <td class="col2"><a href="{{msg.link.msg_author}}">{{msg.author}}</a></td>        
        <td class="col3"><a href="{{msg.link}}?page={{page.number}}">{{msg}}</a></td>
    </tr>

    {% endfor %}
    </tbody>
</table>

{% include "forum/includes/digg_paginator.html" %}

{% else %}
<div class="notice">{% trans "You have no messages at the moment." %}</div>
{% endif %}

{% endblock content %}